/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const FinanceRouterMap = {
  id: 52,
  path: '/finance',
  component: Layout,
  name: '财务管理',
  redirect: '/finance/take_cash',
  meta: {title: '财务管理', icon: 'finance', power: 'finance'},
  showMode: 'DEFAULT',
  children: [
    {
      id: 103,
      path: 'take_cash',
      name: '余额提现',
      component: resolve => require(['@/views/finance/take_cash'], resolve),
      meta: {title: '余额提现', icon: 'takecash', power: 'finance.take_cash'}
    },
    {
      id: 103,
      path: 'take_cash_bonus',
      name: '奖金提现',
      component: resolve => require(['@/views/finance/take_cash_bonus'], resolve),
      meta: {title: '奖金提现', icon: 'takecash', power: 'finance.take_cash'}
    },
    // {
    //   id: 106,
    //   path: 'commission_logs',
    //   name: '提成记录',
    //   component: resolve => require(['@/views/finance/commission_logs'], resolve),
    //   meta: { title: '提成记录', icon: 'commission', power: 'finance.commission_logs' }
    // },
    {
      id: 53,
      path: 'capital_detail',
      name: '资金明细',
      component: resolve => require(['@/views/finance/capital_detail'], resolve),
      meta: {title: '资金明细', icon: 'capital', power: 'finance.capital_detail'}
    }, {
      id: 54,
      path: 'gift_detail',
      name: '赠送金明细',
      component: resolve => require(['@/views/finance/gift_detail'], resolve),
      meta: {title: '赠送金明细', icon: 'gift', power: 'finance.gift_detail'}
    }
  ]
}

export default FinanceRouterMap;
